if index is equal to the line length, then position iterator before
authorHavoc Pennington <hp@redhat.com>
Thu, 4 Jan 2001 20:01:32 +0000 (20:01 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Thu, 4 Jan 2001 20:01:32 +0000 (20:01 +0000)
commitb0a909b8c41011784d7f369150c3e56a6e7f9ee1
treed267a597ed3cf2edef1b21c37bb2fd8a229a7b93
parentc7826b5f63930c960cdb53aa4935ee1f8f7f3b18
if index is equal to the line length, then position iterator before

2001-01-04  Havoc Pennington  <hp@redhat.com>

* gtk/gtktextlayout.c (line_display_index_to_iter): if index is
equal to the line length, then position iterator before paragraph
separators. Fixes crash reported by Mikael Hermansson when
pressing left arrow from the start of a line.

* gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
about byte indexes off the end
(iter_set_from_char_offset): add g_error about char offsets
off the end
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextiter.c
gtk/gtktextlayout.c